/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.user.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 归集相关定时任务配置
 *
 * @author pigx code generator
 * @date 2022-12-15 15:44:52
 */
@Data
@TableName("timing_config")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "归集相关定时任务配置")
public class TimingConfig extends Model<TimingConfig> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="主键")
    private Long id;

    /**
     * 类型 ( 0 手续费 1 归集 2 保证金 3 黑洞 4 客户冷钱包 )
     */
    @ApiModelProperty(value="类型 ( 0 手续费 1 归集 2 保证金 3 黑洞 4 客户冷钱包 )")
    private String type;

	/**
	 * 任务是否启用 0 否 1 是
	 */
	@ApiModelProperty(value="任务是否启用 0 否 1 是")
	private String status;

    /**
     * 地址
     */
    @ApiModelProperty(value="地址")
    private String address;

    /**
     * 私钥
     */
    @ApiModelProperty(value="私钥")
    private String privateKey;

    /**
     * 定时周期（cron表达式）
     */
    @ApiModelProperty(value="定时周期(cron表达式)")
    private String timingPeriod;

    /**
     * 打入客户冷钱包的比例
     */
    @ApiModelProperty(value="打入客户冷钱包的比例")
    private BigDecimal toWalletProportion;

}
